import 'package:thinking/entity/_.dart';

class TagClassEntity {

  int? _code;
  TagClassResultEntity? _data;
  String? _message;

  TagClassEntity({int? code,TagClassResultEntity? data,String? message}){
    this._code = code;
    this._data = data;
    this._message = message;
  }

  int? get code => _code;
  set setCode(int code)=>_code = code;
  String? get message => _message;
  set setMessage(String message) => _message = message;
  TagClassResultEntity? get data =>_data;
  set getData(TagClassResultEntity data) => _data = data;
  TagClassEntity.fromJson(Map<String,dynamic> json){

    _code = json['code'];
    _data = TagClassResultEntity.fromJson(json['data']);
    _message = json['message'];

  }

  Map<String,dynamic> toJson(){
    final Map<String,dynamic> data = new Map<String,dynamic>();
    data['code'] = this._code;
    data['message'] = this._message;
    data['data'] = this.data;

    return data;
  }

}


class TagClassResultEntity{

  List<Tag>? _tagList;

  TagClassResultEntity({List<Tag>? tagList}){
    this._tagList = tagList;
  }

  List<Tag>? get tagList => _tagList;
  set setTagList(List<Tag> tagList)=>_tagList = tagList;


  TagClassResultEntity.fromJson(Map<String,dynamic> json){
    _tagList = [];
    if(json['tagList'] != null  ){
      json['tagList'].forEach((v) {
        _tagList!.add( Tag.fromJson(v));
      });
    }

  }

  Map<String,dynamic> toJson(){
    final Map<String,dynamic> data = new Map<String,dynamic>();
    if (this._tagList != null) {
      data['tagList'] = this._tagList!.map((v) => v.toJson()).toList();
    }

    return data;
  }
}


class TagClassIndexEntity {

  int? _code;
  TagClassIndexResultEntity? _data;
  String? _message;

  TagClassIndexEntity({int? code,TagClassIndexResultEntity? data,String? message}){
    this._code = code;
    this._data = data;
    this._message = message;
  }

  int? get code => _code;
  set setCode(int code)=>_code = code;
  String? get message => _message;
  set setMessage(String message) => _message = message;
  TagClassIndexResultEntity? get data =>_data;
  set getData(TagClassIndexResultEntity data) => _data = data;
  TagClassIndexEntity.fromJson(Map<String,dynamic> json){

    _code = json['code'];
    _data = TagClassIndexResultEntity.fromJson(json['data']);
    _message = json['message'];

  }

  Map<String,dynamic> toJson(){
    final Map<String,dynamic> data = new Map<String,dynamic>();
    data['code'] = this._code;
    data['message'] = this._message;
    data['data'] = this.data;

    return data;
  }

}

class TagClassIndexResultEntity{

  List<TagClassIndex>? _tagClassList;

  TagClassIndexResultEntity({List<TagClassIndex>? tagClassList}){
    this._tagClassList = tagClassList;
  }

  List<TagClassIndex>? get tagClassList => _tagClassList;
  set setTagClassList(List<TagClassIndex> tagClassList)=>_tagClassList = tagClassList;


  TagClassIndexResultEntity.fromJson(Map<String,dynamic> json){
    _tagClassList = [];
    if(json['tagClassList'] != null  ){
      json['tagClassList'].forEach((v) {
        _tagClassList!.add( TagClassIndex.fromJson(v));
      });
    }

  }

  Map<String,dynamic> toJson(){
    final Map<String,dynamic> data = new Map<String,dynamic>();
    if (this._tagClassList != null) {
      data['tagClassList'] = this._tagClassList!.map((v) => v.toJson()).toList();
    }

    return data;
  }
}

class TagClassIndex {

  int? _tagClassId;
  String? _tagClassName;
  int? _tagClassNum;

  TagClassIndex({int? tagClassId,String? tagClassName,int? tagClassNum}){
    this._tagClassId = tagClassId;
    this._tagClassName = tagClassName;
    this._tagClassNum = tagClassNum;
  }

  int? get tagClassId => _tagClassId;
  set setTagClassId(int tagClassId)=>_tagClassId = tagClassId;
  String? get tagClassName => _tagClassName;
  set setTagClassName(String tagClassName) => _tagClassName = tagClassName;
  int? get tagClassNum => _tagClassNum;
  set setTagClassNum(int tagClassNum)=>_tagClassNum = tagClassNum;

  TagClassIndex.fromJson(Map<String,dynamic> json){

    _tagClassId = json['tagClass_Id'];
    _tagClassName = json['tagClass_Name'];
    _tagClassNum = json['tagClass_Num']!=null?json['tagClass_Num']:0;

  }

  Map<String,dynamic> toJson(){
    final Map<String,dynamic> data = new Map<String,dynamic>();
    data['tagClass_Id'] = this._tagClassId;
    data['tagClass_Name'] = this._tagClassName;
    data['tagClass_Num'] = this._tagClassNum;

    return data;
  }

}

class TagClassPageEntity{
  int _page = 0;
  int _count = 10;
  bool _canLoad = true;
  bool _isLoad = false;

  int get page => _page;
  set setPage(int page) => _page = page;
  int get count => _count;
  set setCount(int count) => _count = count;
  bool get canLoad => _canLoad;
  set setCanLoad(bool canLoad) => _canLoad = canLoad;
  bool get isLoad => _isLoad;
  set setIsLoad(bool isLoad) => _isLoad = isLoad;

}